package com.example.bnuzzu.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author BNUZZU
 * @since 2021-04-13
 */
@Data
@TableName(value = "roommate")
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
public class Roommate implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "RoommateID", type = IdType.AUTO)
    private Integer roommateid;

    @TableField("Title")
    private String title;

    @TableField("Region")
    private String region;

    @TableField("RegionID")
    private String regionid;

    @TableField("UserID")
    private Integer userid;

    @TableField("Deleted")
    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modtime;

    @TableField("Price")
    private String price;

}
